package com.mark.migration.service.impl;

import com.mark.migration.service.ApArticleContentService;
import com.mark.model.article.pojos.ApArticleContent;
import com.mark.model.mappers.app.ApArticleContentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description :  Ap文章内容服务
 * @Author :  Markburt
 * @CreateDate :  2020/3/5$ 下午 02:18$
 * @UpdateUser :  Markburt
 * @UpdateDate :  2020/3/5$ 下午 02:18$
 * @UpdateRemark :  Project Build
 * @Version :  1.0
 */
@Service
@SuppressWarnings("all")
public class ApArticleContentServiceImpl implements ApArticleContentService {

    @Autowired
    private ApArticleContentMapper apArticleContentMapper;

    /**
     * 按项目ID查询
     * @param ids
     * @return
     */
    @Override
    public List<ApArticleContent> queryByArticleIds(List<String> ids) {
        return apArticleContentMapper.selectByArticleIds(ids);
    }


    /**
     *按文章Id获取
     * @param id
     * @return
     */
    @Override
    public ApArticleContent getByArticleId(Integer id) {
        return apArticleContentMapper.selectByArticleId(id);
    }
}
